package com.brush.system.domain.resp.sysconfig;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.brush.common.annotation.DictDataProperty;
import com.brush.system.excelconvert.SysDictDataConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * ClassName: SysConfigResp
 * Package: com.brush.web.controller.config.resp
 * Description:
 *
 * @Author luo
 * @Create 2024/8/23 10:46
 * @Version 1.0
 */
@ApiModel(value = "SysConfigResp", description = "参数配置响应对象")
@Getter
@Setter
@ExcelIgnoreUnannotated
public class SysConfigResp {

    /**
     * 参数主键
     */
    @ExcelProperty(value = "参数主键")
    @ApiModelProperty(value = "参数主键")
    private Integer configId;

    /**
     * 参数名称
     */
    @ExcelProperty(value = "参数名称")
    @ApiModelProperty(value = "参数名称")
    private String configName;

    /**
     * 参数键名
     */
    @ExcelProperty(value = "参数键名")
    @ApiModelProperty(value = "参数键名")
    private String configKey;

    /**
     * 参数键值
     */
    @ExcelProperty(value = "参数键值")
    @ApiModelProperty(value = "参数键值")
    private String configValue;

    /**
     * 系统内置（Y是 N否）
     */
    @ExcelProperty(value = "系统内置", converter = SysDictDataConverter.class)
    @ApiModelProperty(value = "系统内置（Y是 N否）")
    @DictDataProperty(value = "sys_yes_no")
    private String configType;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
